package stattracker;
/*
 * --------------GOALS-------------------
 * Looks solid, might have to change little things
 */
public class Weapon implements java.io.Serializable, Comparable<Weapon> 
{
	private static final long serialVersionUID = 1L;
	private String name, imgLoc;
	private int amt;
	
	public Weapon(String name, String loc)
	{
		imgLoc = loc;
		this.name = name;
		amt = 0;
	}
	
	public String getName()
	{
		return name;
	}
	
	public String getImgLoc()
	{
		return imgLoc;
	}
	
	public int getKillCount()
	{
		return amt;
	}
	
	public void setKillCount(int numKills)
	{
		amt = numKills;
	}
	
	public int compareTo(Weapon two)
	{
		if(this.amt == two.getKillCount())
			return this.name.compareTo(two.getName());
		return ((Integer)two.getKillCount()).compareTo(this.amt);
	}
}
